const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userinfo.avatar,
  name: state => state.user.userinfo.username, // 用户姓名
  userid: state => state.user.userinfo.userId, // 用户id
  staffPhoto: state => state.user.userinfo.staffPhoto, // 建立用户头像的映射
  routes: state => state.permission.routes// 动态路由
}
export default getters
